package org.jeecg.modules.wms.inventory.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.wms.inventory.entity.WmsInventory;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 库存表
 * @Author: jeecg-boot
 * @Date:   2025-10-31
 * @Version: V1.0
 */
public interface IWmsInventoryService extends IService<WmsInventory> {
    /**
     * 根据唯一键获取库存
     * @param productId 商品ID
     * @param locationCode 储位编码
     * @param batchNumber 批次号
     * @return
     */
    WmsInventory getInventoryByUniqueKey(String productId, String locationCode, String batchNumber);

    /**
     * 库存列表
     * @param page
     * @param wmsInventory
     * @return
     */
    IPage<WmsInventory> pageList(Page<WmsInventory> page, WmsInventory wmsInventory);
}
